import java.util.Scanner;

public class Main4{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int c = in.nextInt();
        MinuteConverter minConverter = new MinuteConverter();
        minConverter.toYearAndDay(c);
    }
}

/* 请在这里填写答案 */
class MinuteConverter {
    public void toYearAndDay(int minute){
        int year = minute / 525600;
        int tmpday = minute%525600;
        int day = tmpday / 1440;
        if(tmpday %1440 >= 720) day++;
        System.out.printf("%d minutes is approximately %d years and %d days.",minute,year,day);
    }
}
